import time
# a = time.strftime('%Y-%m-%d-%H:%M:%S',time.localtime())
# print(a)
#
# import datetime
# print(datetime.datetime.now())

#生成四位随机验证码

import random
# print(random.random())
# print(random.randint(1,4))
# print(random.randrange(10))
code = ''
for i in range(4):
    current =random.randrange(0,4)
    if current  !=i:
        temp = chr(random.randint(65,90))
    else:
        temp = random.randint(0,9)
    code += str(temp)
print(code)
